package com.wushi.lenovo.asia5b.app_di.profile.presenter;

import com.mvp.base.BasePresenter;
import com.wushi.lenovo.asia5b.app_di.profile.mvpview.CheckPayPassActivityView;
import com.wushi.lenovo.asia5b.app_http.ApiService;
import com.wushi.lenovo.asia5b.app_model.other.UserInfo;

import javax.inject.Inject;


/**
 * Created by zhangyuncai on 2019/3/1.
 */
public class CheckPayPassActivityPresenter extends BasePresenter<CheckPayPassActivityView> {

    ApiService apiService;

    @Inject
    public CheckPayPassActivityPresenter(ApiService apiService) {
        this.apiService = apiService;
    }
    public void checkCurrentPayPass(String payment_password) {
        baseSubscribe(apiService.checkPayPass(UserInfo.getMemberId(), payment_password)
                , resultModel -> {
                    getView().checkCurrentPayPassResult(resultModel);
                });
    }
}